from txjsonrpc.web import jsonrpc
from twisted.web import server
from twisted.internet import reactor
 
class MyServer(jsonrpc.JSONRPC):
    """This server is handling mathmatic procedures"""
    def jsonrpc_add(self, number1, number2):
        return number1 + number2
    
    def jsonrpc_mult(self, number1, number2):
        return number1 * number2

reactor.listenTCP(7090, server.Site(MyServer()))
reactor.run()
        


      
